import ReactDOM from 'react-dom'
import React from 'react'
import {BrowserRouter as Router,
  Route
} from 'react-router-dom'
import { store } from './configureStore'
import { Provider } from 'react-redux'
import { TodoApp } from './App'

ReactDOM.render(
  <Router>
    <Provider store={store}>
      <Route path='/:filter?'>
        <TodoApp />
      </Route>
    </Provider>
  </Router>,
  document.getElementById('root')
)
